package com.avertymaroc.beans;

import java.io.Serializable;

public class User implements Serializable{
	
	public static final String KEY_PRENOM 		= "prenom";
	public static final String KEY_ID 			= "id";
	public static final String KEY_IMAGE	 	= "image";
	public static final String KEY_VILLE 		= "ville";
	public static final String HOME_IMG 		= "Homme.png";
	public static final String FEMME_IMG 		= "Femme.png";
	public static final String KEY_NOM			= "nom";
	public static final String KEY_SEXE			= "sex";
	public static final String KEY_ANNE			= "anneeDeNaissance";
	public static final String KEY_ADRESSE		= "adresse"; 
	public static final String KEY_EMAIL		= "email";
	public static final String KEY_TEL			= "tel";
	public static final String KEY_PROFESSION	= "profession";
	
	private Integer id;
	private String prenom;
	private String email;
	private int points;
	private String mdp;
	private String img;
	private int sexe;
	private int ville;
	
	public User() {}
	public User(int id ,String prenom ,String email ,int points){
		this.id = id;
		this.prenom = prenom;
		this.email = email;
		this.points = points;
	}
	
	
	public String toString(){
		return id+" "+prenom+" "+email+" "+points;
	}
	
	public Integer getId() {
		return id;
	}
	public User setId(Integer id) {
		this.id = id;
		return this;
	}
	public String getPrenom() {
		return prenom;
	}
	public User setPrenom(String prenom) {
		this.prenom = prenom;
		return this;
	}
	public String getEmail() {
		return email;
	}
	public User setEmail(String email) {
		this.email = email;
		return this;
	}
	public int getPoint() {
		return points;
	}
	public User setPoint(int points) {
		this.points = points;
		return this;
	}
	public int getPoints() {
		return points;
	}
	public void setPoints(int points) {
		this.points = points;
	}
	
	public String getMdp() {
		return mdp;
	}
	public void setMdp(String mdp) {
		this.mdp = mdp;
	}
	public String getImg() {
		return img;
	}
	public void setImg(String img) {
		this.img = img;
	}
	public int getSexe() {
		return sexe;
	}
	public void setSexe(int sexe) {
		this.sexe = sexe;
	}
	public int getVille() {
		return ville;
	}
	public void setVille(int ville) {
		
		
		this.ville = ville;
	}
	
	
	
	

}
